import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'

import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department.vue";
import Permission from "./views/auth/Permission.vue";
import Role from "./views/auth/Role.vue";
import NoPermission from './views/403.vue'
import Employee from "./views/org/Employee.vue";
import Menu from "./views/auth/Menu.vue";
import Config from "./views/sys/Config.vue"
import Dictionary from "./views/sys/Dictionary.vue";
import Dictionaryitem from "./views/sys/Dictionaryitem.vue";
import Product from "./views/prod/Product.vue";
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '',

        hidden: true,
        children: [
            { path: '/403', component: NoPermission, name: '' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },

    {
        path: '/',
        component: Home,
        name: '部门管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门' },
            { path: '/employee', component: Employee, name: '员工' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '权限管理',
        iconCls: 'el-icon-message',
        children: [
            { path: '/permission', component: Permission, name: '权限' },
            { path: '/role', component: Role, name: '角色' },
            // { path: '/menu', component: Menu, name: '菜单' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-message',
        children: [
            { path: '/config', component: Config, name: '系统配置' },
            { path: '/dictionary', component: Dictionary, name: '数据字典' },
            { path: '/dictionaryitem', component: Dictionaryitem, name: '数据字典详细' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '产品管理',
        iconCls: 'el-icon-message',
        children: [
            { path: '/product', component: Product, name: '产品' },


        ]
    },




    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;